package com.allwees.bs.module.fms.req;

import com.allwees.bs.core.modelbase.req.Req;
import com.allwees.bs.core.modelbase.validate.ValidateItem;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;

/**
 * 执行提现
 *
 * @author yangylsky
 * @since 2019-12-12
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DoWithdrawReq extends Req {
	private String withdrawLogUuid;

	private BigDecimal exchangeRate;

	@Override
	public ValidateItem[] getValidateItems() {
			return new ValidateItem[] {
				new ValidateItem(StringUtils.isBlank(withdrawLogUuid), "withdrawLogUuid不能为空"),
			    new ValidateItem(exchangeRate == null, "提现汇率不能为空")
			};
	}
}
